﻿using System;
using System.Collections.Generic;
using System.Text;
using MINERP.MODEL.EM;
using MINERP.DAL.EM;

namespace MINERP.BLL.EM
{
    public  class DepartMentBLL
    {
        public static DepartmentInfo Select(int id)
        {
            using (DepartMentDAL  dal = new DepartMentDAL())
            {
                return dal.Select(id); 
            }
        }

        public static List<DepartmentInfo> SelectAll()
        {
            using (DepartMentDAL dal = new DepartMentDAL())
            {
                return dal.SelectAll();
            }
        }
    }
}
